package cn.com.klun.tjy.other.redisTest;

import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import redis.clients.jedis.JedisSentinelPool;

import java.util.HashSet;
import java.util.Set;

public class JedisSentinelTest {
    public static void main(String[] args) {
        // sentinel 节点集合
        Set<String> listSentinel = new HashSet<>();

        // common-pool 连接池配置
        final GenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig();


        JedisSentinelPool mymaster =
                new JedisSentinelPool("mymaster",
                        listSentinel,
                        poolConfig,
                        30000,
                        18000,
                        "abc",
                        123456,
                        "abc");
        JedisSentinelPool mymaster1 = new JedisSentinelPool("mymaster",
                listSentinel,
                poolConfig,
                30000);



    }
}
